/*    */ package com.newcrm.webapi.sub;
/*    */ 
/*    */ import com.newcrm.bean.User;
/*    */ import com.newcrm.db.CompanySMSManager;
/*    */ import com.newcrm.exception.DBException;
/*    */ import com.newcrm.exception.NotFoundException;
/*    */ import com.newcrm.webapi.AbstractAction;
/*    */ import com.newcrm.webapi.AbstractHttpServlet;
/*    */ import java.io.IOException;
/*    */ import java.sql.SQLException;
/*    */ import java.util.Map;
/*    */ import javax.servlet.RequestDispatcher;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ 
/*    */ public class ShowUpdateSMS extends AbstractAction
/*    */ {
/* 22 */   private static Logger logger = Logger.getLogger(ShowUpdateSMS.class
/* 23 */     .getName());
/*    */ 
/*    */   public ShowUpdateSMS(AbstractHttpServlet servlet)
/*    */   {
/* 26 */     super(servlet);
/*    */   }
/*    */ 
/*    */   public void parse(HttpServletRequest request, HttpServletResponse response)
/*    */     throws IOException, ServletException, NotFoundException
/*    */   {
/* 32 */     User loginUser = super.getLoginUser(request);
/*    */ 
/* 34 */     CompanySMSManager manager = new CompanySMSManager();
/*    */     try {
/* 36 */       Map smsSettings = manager
/* 37 */         .getCompanySMSSetting(loginUser.companyId);
/* 38 */       request.setAttribute("smsSettings", smsSettings);
/*    */     } catch (DBException e) {
/* 40 */       logger.warn("get user sms setting failed", e);
/*    */     } catch (SQLException e) {
/* 42 */       logger.warn("get user sms setting failed", e);
/*    */     }
/*    */ 
/* 45 */     request.getRequestDispatcher("/smsSetting.jsp").forward(request, 
/* 46 */       response);
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.sub.ShowUpdateSMS
 * JD-Core Version:    0.6.1
 */